/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.member.service;

import com.oracleandsxnd.erp.common.persistence.Page;
import com.oracleandsxnd.erp.common.service.CrudService;
import com.oracleandsxnd.erp.member.dao.MemberIntegralLogDao;
import com.oracleandsxnd.erp.member.entity.MemberIntegralLog;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 会员积分管理Service
 * @author 会员积分管理
 * @version 2019-12-13
 */
@Service
@Transactional(readOnly = true)
public class MemberIntegralLogService extends CrudService<MemberIntegralLogDao, MemberIntegralLog> {

	public MemberIntegralLog get(String id) {
		return super.get(id);
	}
	
	public List<MemberIntegralLog> findList(MemberIntegralLog memberIntegralLog) {
		return super.findList(memberIntegralLog);
	}
	
	public Page<MemberIntegralLog> findPage(Page<MemberIntegralLog> page, MemberIntegralLog memberIntegralLog) {
		return super.findPage(page, memberIntegralLog);
	}
	
	@Transactional(readOnly = false)
	public void save(MemberIntegralLog memberIntegralLog) {
		super.save(memberIntegralLog);
	}
	
	@Transactional(readOnly = false)
	public void delete(MemberIntegralLog memberIntegralLog) {
		super.delete(memberIntegralLog);
	}

	public Page<MemberIntegralLog> findtjPage(Page<MemberIntegralLog> memberIntegralLogPage, MemberIntegralLog memberIntegralLog) {
		memberIntegralLog.setPage(memberIntegralLogPage);
		memberIntegralLogPage.setList(dao.findtjList(memberIntegralLog));
		return memberIntegralLogPage;
	}
}